home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1998 January / PC Answers Issue 49 Cover CD January 1998.iso / MEDIA / MAIN.DXR / Internal_9_prep. handlers - to be removed.ls < prev    next >
Encoding:
Text File  |  1997-10-01  |  728 b   |  26 lines

  1. on scanAnimateCast
  2.   global tAnimateL
  3.   set pointerL to [500, 800, 1000]
  4.   set tAnimateL to [[], [], [], []]
  5.   set count to 1
  6.   set begin to 1
  7.   repeat with i = 1 to the number of castMembers of castLib "animate"
  8.     if the type of member i of castLib "animate" = #bitmap then
  9.       nothing()
  10.       next repeat
  11.     end if
  12.     if the type of member i of castLib "animate" = #empty then
  13.       append(getAt(tAnimateL, count), begin)
  14.       append(getAt(tAnimateL, count), i - 1)
  15.       set begin to i + 1
  16.       next repeat
  17.     end if
  18.     if the type of member i of castLib "animate" = #field then
  19.       if count < 4 then
  20.         set i to getAt(pointerL, count)
  21.         set count to count + 1
  22.       end if
  23.     end if
  24.   end repeat
  25. end
  26.